/*
 * NetworkService.h
 *
 *  Created on: 2011-10-8
 *      Author: stargui
 */

#ifndef NETWORKSERVICE_H_
#define NETWORKSERVICE_H_

namespace PROTOCOL
{

#define MODEL_NETWORKSERVICE			"NWSM"				//�������ģ��
#define NETWORKSERVICE_ETHERNET						"ETHERNET"			//3.4.4.1.3 �����������
#define NETWORKSERVICE_WIFI							"WIFI"					//3.4.4.1.4 WIFI����
#define NETWORKSERVICE_ADSL							"ADSL"					//3.4.4.1.5 ADSL����
#define NETWORKSERVICE_3G								"3G"					//3.4.4.1.6 3G����
#define NETWORKSERVICE_NTP								"NTP"					//3.4.4.1.7 NTP����
#define NETWORKSERVICE_DDNS							"DDNS"					//3.4.4.1.8 DDNS����
#define NETWORKSERVICE_EMAIL							"EMAIL"				//3.4.4.1.9 �ʼ�����
#define NETWORKSERVICE_UPNP							"UPNP"					//3.4.4.1.10 UPNP����
#define NETWORKSERVICE_PORT							"PORT"					//3.4.4.1.11 ����˿�
#define NETWORKSERVICE_MAC								"MAC"					//�豸��MAC




#define NETWORKSERVICE_PIP								"PIP"					//IP����
#define NETWORKSERVICE_IPADDR							"IPADDR"				//IP��ַ�����ʮ����(IP4����IP6) ���ַ�
#define NETWORKSERVICE_SUBMASK						"SUBMASK"				//�������룬���ʮ���ƣ��ַ�
#define NETWORKSERVICE_GATEWAY						"GATEWAY"				//��أ����ʮ���ƣ��ַ�

#define NETWORKSERVICE_DNS								"DNS"					//DNS
#define NETWORKSERVICE_PDNS							"PDNS"					//��DNS�����ʮ���ƣ��ַ�
#define NETWORKSERVICE_ADNS							"ADNS"					//����DNS�����ʮ���ƣ��ַ�


#define NETWORKSERVICE_IPMODE							"IPMODE"				//IP��ģʽ 0����̬IP1 1��DHCP
#define NETWORKSERVICE_DNSMODE						"DNSMODE"				//�Ƿ��Զ���ȡDNS������ 0���ֶ����� 1���Զ���ȡ
#define NETWORKSERVICE_ENABLE							"ENABLE"				//WIFI��adsl��3g�Ƿ��� 0���ر� 1������

#define NETWORKSERVICE_ECRYPTTYPE						"ECRYPTTYPE"			//WIFI���ܷ�ʽ 0��WE_NONE 1��WE_WEP 2��WE_WPA
#define NETWORKSERVICE_ESSID							"ESSID"				//wifi �� essid

#define NETWORKSERVICE_PWD								"PWD"					//����WIFI�����룬�ַ� ����
#define NETWORKSERVICE_DIALDEVICE						"DIALDEVICE"			//�����豸 0��ETHERNET(����) 1��WIFI(����)
#define NETWORKSERVICE_USERID							"USERID"				//�˻� �û���
#define NETWORKSERVICE_NETTYPE						"NETTYPE"				//
#if 0
MODULE3G_GPRS = 0,
MODULE3G_EDGE,
MODULE3G_CDMA,/**/
MODULE3G_EVDO,/**/
MODULE3G_WCDMA,/**/
MODULE3G_TDSCDMA,/**/
NONE,/**/
#endif

#define NETWORKSERVICE_ACTIVEMODE						"ACTIVEMODE"			//��������ģʽ 0���Զ����� 1���ֶ�����(�绰����,���ż���)
#define NETWORKSERVICE_APN								"APN"					//3g �����apn
#define NETWORKSERVICE_SERVERCODE						"SERVERCODE"			//����������,�ַ�
#define NETWORKSERVICE_NTPSWITCH						"NTPSWITCH"			//NTP���� 0���ر� 1������
#define NETWORKSERVICE_INTERNELTIME					"INTERNELTIME"		//Уʱʱ��������λ������
#define NETWORKSERVICE_SERVERNAME						"SERVERNAME"			//NTP��������ַ(�ֶ���д) ,�ַ�
#define NETWORKSERVICE_DDNSSWITCH						"DDNSSWITCH"			//DDNS���أ����Ƿ���DDNS���� 0����ʾ�ر� 1����ʾ����
#define NETWORKSERVICE_DDNSTYPE						"DDNSTYPE"			//
#if 0
DDNST_3322 = 0,/*3322*/
DDNST_DYNDNS,/**/
DDNST_LTSCCTV,/**/
DDNS_LOREX,/**/
DDNS_DNSEXIT,/**/
DDNS_QSEE,/**/
DDNS_JSJDVR,/**/ DDNS_CCTVGOV/**/
#endif

#define NETWORKSERVICE_HOSTNAME						"HOSTNAME"			//������,�ַ�
#define NETWORKSERVICE_EMAILSWITCH					"EMAILSWITCH"			//�Ƿ���EMAIL���� 0����ʾ�ر� 1����ʾ����

#define NETWORKSERVICE_SSLSWITCH						"SSLSWITCH"			//�Ƿ���SSL���� 0: ��ʾ�ر� 1����ʾ����
#define NETWORKSERVICE_SMTPSERVER						"SMTPSERVER"			//�������SMTP������,�ַ�
#define NETWORKSERVICE_SENDERNAME						"SENDERNAME"			//����������,�ַ�
#define NETWORKSERVICE_SENDERPWD						"SENDERPWD"			//����������,�ַ�
#define NETWORKSERVICE_SSERVERPORT					"SSERVERPORT"			//�ʼ��������Ķ˿ں�,�ַ�
#define NETWORKSERVICE_SENDINTERVAL					"SENDINTERVAL"		//����ʱ����
#define NETWORKSERVICE_SZRECVNAME						"RECVLIST"			//�ռ�������,����һ���ַ����飬ÿ��Ԫ���ַ�(0-9)ÿ���±��ʾһ���ռ���
#define NETWORKSERVICE_STARTPORT						"STARTPORT"			//���ܴ��ڶ˿ںŵ�������ʼ�˿ں�
#define NETWORKSERVICE_ENDPORT						"ENDPORT"				//����˿ں�

//�豸���ܴ��ڶ���˿ڹ��ڴ��ö˿ڼ�����ʾPORTLIST�����豸����һ�����飬������±��������ö˿ڵ����ã�Ŀǰ����0��WEB��1��ý��
#define NETWORKSERVICE_PORTLIST						"PORTLIST"

#define NETWORKSERVICE_GETWIFIAPLIST				"GETWIFIAPLIST"			//获取当前环境的wifi的ap列表
#define NETWORKSERVICE_APICOUNT						"APICOUNT"					//当前获取的ap个数
#define NETWORKSERVICE_APLIST						"APLIST"					//ap列表
#define NETWORKSERVICE_ENCRYPT						"ENCRYPT"					//wifi加密方式 0-无加密 1-WEP 2-WPA
#define NETWORKSERVICE_QUALITY						"QUALITY"					//wifi信号强调值


#define NETWORKSERVICE_TESTFUN						"TESTFUN"					//测试网络服务
#define NETWORKSERVICE_CONNWIFIAP					"CONNWIFIAP"				//接入一个新的wifi ap


#define NETWORKSERVICE_UPLOADDEVINFO				"UPLOADDEVINFO"			//设备主动注册信息
#define NETWORKSERVICE_DSNO							"DSNO"						//设备序列号
#define NETWORKSERVICE_DPW							"DPW"						//设备密码
#define NETWORKSERVICE_MT							"MT"						//网卡或者模块类型 例如："eth0"、"eth1"、"ath0"、"ppp0"等等
#define NETWORKSERVICE_IMAC							"IMAC"						//每个网卡对应的mac，如果一个网卡对应多个mac，则多个mac用"|"分割开

#define NETWORKSERVICE_DLIP							"DLIP"						//设备在局域网的ip
#define NETWORKSERVICE_LIP							"LIP"						//每个网卡对应的ip地址，如果一个网卡对应多个ip，则多个ip用"|"分割开，如果只有外网ip(3G卡)，则直接填3G的ip

#define NETWORKSERVICE_DWIP							"DWIP"						//该字段与DLIP一一对应，即使外网IP相同，为了解析方便也需要填充完整。
#define NETWORKSERVICE_WIP							"WIP"						//该字段与LIP一一对应，即使外网IP相同，为了解析方便也需要填充完整。

#define NETWORKSERVICE_DLP							"DLP"						//设备自身的监听端口，该字段包括设备所有的监听端口，是一个数组，每个端口表示的含有由其下标决定。0：web端口1：媒体端口
#define NETWORKSERVICE_DWP							"DWP"						//与DLP一一对应


#define NETWORKSERVICE_UPALARMINFO					"UPALARMINFO"				//上传报警信息到报警服务器
#define NETWORKSERVICE_AT							"AT"						//报警类型
#define NETWORKSERVICE_CT							"CT"						//报警状态
#define NETWORKSERVICE_AID							"AID"						//报警编号
#define NETWORKSERVICE_TGT							"TGT"						//上传方式 0:手动 1:自动
#define NETWORKSERVICE_CTT							"CTT"						//持续时间
#define NETWORKSERVICE_CURT							"CURT"						//发生时间
#define NETWORKSERVICE_CH							"CH"						//通道bit位表示
#define NETWORKSERVICE_CHM							"CHM"						//通道掩码
#define NETWORKSERVICE_SAT							"SAT"						//存储器
#define NETWORKSERVICE_STI							"STI"						//存储器逻辑编号
#define NETWORKSERVICE_ERRC							"ERRC"						//错误编码
#define NETWORKSERVICE_ERRP							"ERRP"						//错误描述
#define NETWORKSERVICE_SNO							"SNO"						//自定义报警编号
#define NETWORKSERVICE_ANA							"ANA"						//报警名称
#define NETWORKSERVICE_L								"L"							//语言,与配置文件同步
}

#endif /* NETWORKSERVICE_H_ */
